package crawler.cnki.task;

import crawler.cnki.selenium.SeleniumAction;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;

public class DataAction implements SeleniumAction {

    @Override
    public void execute(WebDriver driver) {
        try {
            if (driver.getCurrentUrl().contains("d.wanfangdata")) {
                driver.findElement(By.cssSelector("div.detailList div.summary span.getMore")).click();
            }
        } catch (Exception e) {

        }
    }
}